<?php

/**
 * PeriodoCoordinacion form.
 *
 * @package    sistema_estadisticas
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class PeriodoCoordinacionForm extends BasePeriodoCoordinacionForm
{

	public function configure()
	{
		$this->widgetSchema['docente_id'] = new WidgetFormAutocomplete(
			array(
				'model' => 'Docente',
				'action' => 'docente/buscar'
			)
		);
		$this->widgetSchema['f_inicio'] = new WidgetFormDatePick();
		$this->widgetSchema['f_fin'] = new WidgetFormDatePick();
		$this->widgetSchema['carrera_id']->setOption('order_by', array('denominacion', 'ASC'));

		$this->validatorSchema->setPostValidator(new ValidatorFechas(array('begin_date_column' => 'f_inicio', 'end_date_column' => 'f_fin')));
	}

}
